package cn.ayanami.blog.article.service;

import cn.ayanami.blog.article.entity.dto.AddArticleDto;
import cn.ayanami.blog.article.entity.dto.ModifyArticleDto;
import cn.ayanami.blog.article.entity.vo.ArticleListVo;
import cn.ayanami.blog.article.entity.vo.ArticleVo;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

public interface ArticleService {

    Mono<Integer> addArticle(AddArticleDto addArticleDto);

    Mono<ArticleVo> getArticleByArticleId(String id);

    /**
     * 修改文章内容
     * 
     * @param modifyArticleDto
     * @return
     */
    Mono<Integer> modifyArticle(ModifyArticleDto modifyArticleDto);

    Flux<ArticleListVo> getArticleList(int page, int size);

}
